Frequently Used Terms
Directory Commands
File Commands
Special Commands
vi Editor, Print Commands and Symbols
User, Root and Home Directory
whoami## emirtoker
Root directory symbol; “/”. Home directory symbol; “~”.
Environments and Backup
printenv
Command Line, Command
Warning, Error, Permission Denied, Segmentation Fault
pwd (Print Working Directory)
ls (List Directories)
cd (Change Directory)
mkdir (Make Directory)
(Print Working Directory)
pwd## /Users/emirtoker/Desktop/Dersler/Memurluk/Software_Tools_for_Earth_&_Environmental_Science/Software_Tools_R_Github/Presentation
(List Directories)
ls## Presentation.Rproj
## Presentation_Week1_-_Data_and_Code.Rmd
## Presentation_Week1_-_Data_and_Code.html
## Presentation_Week2_-_Linux_and_Python.Rmd
## Presentation_Week2_-_Linux_and_Python.html
## Presentation_Week2_-_Linux_and_Python.pdf
## Richard.jpg
## Software_Tools_for_Earth_and_Environmental_Science_Syllabus.png
## The_Book_of_R.png
## Week1_rpubs.Rmd
## Week1_rpubs.html
## ai.png
## algorithm.png
## alma.jpg
## anaconda.png
## analysis.png
## apache_point.jpg
## arcgis.png
## big_data1.png
## book_flow.png
## cd1.png
## cd2.png
## clear.png
## code.png
## command_line.png
## conda.png
## course_github.png
## coursera.png
## cp.png
## cp1.png
## cygwin.png
## data_analytics.png
## data_assim.jpeg
## data_mining.svg
## datacamp.png
## datascience.png
## datashape.jpg
## datum.png
## deep.jpg
## download.png
## dropbox.png
## earthdata.png
## eda.png
## edx.png
## exit.png
## extended_syllabus.png
## extended_syllabus1.png
## filer_folder.png
## filezilla.png
## find.png
## generate.png
## github.png
## gnu_logo.png
## help.png
## history.png
## iot.png
## jupyter.png
## jupyter_notebook.png
## kernel.jpg
## khanacademy.png
## languages.png
## last_week.png
## linus.jpeg
## linux_dist.png
## linux_logo.png
## machine.jpg
## mendeley.png
## metadata0.png
## metadata1.png
## meted.png
## mining.jpg
## mining1.jpg
## mkdir1.png
## mkdir2.png
## model.png
## mv.png
## my_profile
## mynewfile.png
## nc.png
## ncl.png
## orcid.png
## os.png
## overleaf.png
## panoply.png
## printenv.png
## pwd_mac.png
## pwd_mac1.png
## pwd_win.png
## python.jpg
## python_term.png
## qgis.png
## researchgate.png
## rm.png
## root.png
## root_fig.gif
## rsconnect
## rstudio.png
## simulation.jpg
## stackoverflow.png
## sublimetext.png
## syllabus.png
## terminal.png
## terminal0.png
## terminal1.png
## touch.png
## udemy.png
## unix_develop.jpg
## unix_linux.png
## vi_0.png
## vi_1.png
## vi_2.png
## vi_3.png
## visual.jpg
## warning.png
## week2_sil.Rmd
## week2_sil.html
## week2_sil.log
## week2_sil.tex
## wetransfer.png
## wget.jpg
## what_data.svg
## win_folder.png
## wolfram-alpha.png
## zenodo-doi.png
(Change Directory)
cd Presentation/
(Make Directory)
mkdir <new_folder_name>
touch
cat (Concatenate)
rm (Remove)
cp (Copy)
mv (Move)
touch <my_new_file>
(Concatenate)
cat my_new_file
This is my new file. Hi!
(Copy)
cp my_new_file my_new_file2
(Move)
mv my_new_file2 my_new_file3
(Remove)
rm my_new_file my_new_file3
find
help
history
clear
date and cal
exit
find -name <name_of_file>
find --help
history
clear
date## Mon Sep 30 16:44:11 +03 2019
cal## September 2019
## Su Mo Tu We Th Fr Sa
## 1 2 3 4 5 6 7
## 8 9 10 11 12 13 14
## 15 16 17 18 19 20 21
## 22 23 24 25 26 27 28
## 29 _3_0
##
exit
* (an unknown sroup of characters)cat my_profile | sort
ls > my_list
x=3
echo $x
ls my*
ls ?y_list*
vi
esc (default mode)
i (insert mode)
:q (just quit)
:q! (don’t save and quit)
:qw (write/save and quit)
grep and echo
head and tail
sed (stream editor)
(Default Mode)
(Insert Mode)
(Write/Save and Quit)
grep my_profile
grep ITU my_profile
echo my_profile
name=Emir
echo $name
head my_profile
tail my_profile
(Stream Editor)
Replacing or substituting string;
sed 's/ITU/ODTU/' my_profile
sed '5d' my_profile
touch my_bash_script.sh
vi my_bash_script.sh
x=5
y=3
echo $((x+y))
bash my_bash_script.sh
8
<my_new_dir>)<my_new_dir> (change your directory)<my_new_file>)<my_new_file> at the parent directory (move it)<my_new_file_2><my_new_dir>